projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0678fe5
)
applications/luci-splash: Make luci-splash more silent in normal mode in case of...
author
Manuel Munz
<
[email protected]
>
Thu, 17 Oct 2013 00:22:55 +0000
(
00:22
+0000)
committer
Manuel Munz
<
[email protected]
>
Thu, 17 Oct 2013 00:22:55 +0000
(
00:22
+0000)
applications/luci-splash/root/usr/sbin/luci-splash
patch
|
blob
|
history
diff --git
a/applications/luci-splash/root/usr/sbin/luci-splash
b/applications/luci-splash/root/usr/sbin/luci-splash
index 5051d60b7ca4f2aa3cb5c12fdd60f3f059b036e7..4239b2d83fea993a799fb7db0d024da135ec3048 100755
(executable)
--- a/
applications/luci-splash/root/usr/sbin/luci-splash
+++ b/
applications/luci-splash/root/usr/sbin/luci-splash
@@
-13,7
+13,7
@@
local net = sys.net
local fs = require "luci.fs"
local ip = require "luci.ip"
-local debug =
tru
e
+local debug =
fals
e
local has_ipv6 = fs.access("/proc/net/ipv6_route") and fs.access("/usr/sbin/ip6tables")
@@
-26,12
+26,14
@@
function unlock()
end
function exec(cmd)
- local ret = sys.exec(cmd)
if debug then
+ local ret = sys.exec(cmd)
print('+ ' .. cmd)
if ret and ret ~= "" then
print(ret)
end
+ else
+ local ret = sys.exec(cmd .. " &> /dev/null")
end
end